from pml import Objects

class PMNullObject(Objects.PMBooleanObject.PMBooleanObject):
    def __init__(self, value=None):
        super().__init__()
        self.name = 'null'
        self.value = value
    def __repr__(self):
        return 'null'
    def __hash__(self):
        return hash(None)

    def getObject(self):
        self.methods['__init__'] = self.tp_init

        return self

    @staticmethod
    def tp_init(frame, this, position, value=None):
        pass
